agents.anac.y2010.Yushu
Class Yushu

java.lang.Object
  extended by negotiator.Agent
      extended by agents.anac.y2010.Yushu.Yushu

public class Yushu
extends Agent

ANAC2010 competitor Yushu.


Field Summary
 
Fields inherited from class negotiator.Agent
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace
 
Constructor Summary
Yushu()
           
 
Method Summary
 double averLastTResT(int length)
           
 double averResT()
           
 Action chooseAction()
          this function is called after ReceiveMessage, with an Offer-action.
 java.lang.String getName()
           
 double getTargetUtility()
           
static java.lang.String getVersion()
           
 void init()
          This method is called by the protocol every time before starting a new session after the internalInit method is called.
 void ReceiveMessage(Action opponentAction)
          informs you which action the opponent did
 void updateBelief(Bid opponentBid, double uti)
           
 
Methods inherited from class negotiator.Agent
endSession, getAgentID, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Yushu

public Yushu()
Method Detail

init

public void init()
Description copied from class: Agent
This method is called by the protocol every time before starting a new session after the internalInit method is called. User can override this method.

Overrides:
init in class Agent

getVersion

public static java.lang.String getVersion()

getName

public java.lang.String getName()
Overrides:
getName in class Agent
Returns:
name of the agent.

ReceiveMessage

public void ReceiveMessage(Action opponentAction)
Description copied from class: Agent
informs you which action the opponent did

Overrides:
ReceiveMessage in class Agent

chooseAction

public Action chooseAction()
Description copied from class: Agent
this function is called after ReceiveMessage, with an Offer-action.

Specified by:
chooseAction in class Agent
Returns:
(should return) the bid-action the agent wants to make.

getTargetUtility

public double getTargetUtility()

updateBelief

public void updateBelief(Bid opponentBid,
                         double uti)

averResT

public double averResT()

averLastTResT

public double averLastTResT(int length)